import ConfigParser
import string
import tempfile
import os
import socket
from datetime import *

config = ConfigParser.ConfigParser()
try:
	config.read("cms.cfg")
except:
	print "No Config File Found. Quitting"
	sys.exit(0)

def parsedate(datestr):
	if datestr and len(datestr):
		p = datestr.split("/")
		return date(int(p[2]), int(p[0]), int(p[1]))
	else:
		return date.today()
